﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MensUnoShop.Models.ViewModels.RegionViewModel>" %>
<%@ Import Namespace="MensUnoShop.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	men'suno SHOP
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="CONTENT2">
    <div class="CONTENT_LEFT">
        <ul>
            <%Html.RenderPartial("/Views/Shared/SearchBox.ascx"); %>
            <%Html.RenderPartial("/Views/Shared/ProductTitle.ascx",Model.LEFTTAG); %>
            <%Html.RenderPartial("/Views/Shared/HotSearch.ascx", Model.HOTKEYLIST); %>
            <%Html.RenderPartial("/Views/Shared/News.ascx", Model.NEWS); %>
        </ul>
    </div>
    <div class="CONTENT_RIGHT">
        <p class="FAST_LINK"><%=Html.GetNavLinkString(Model.NAVLIST)%></p>
            <ul class="PRODUCT_LIST">
                <li class="BANNER1">
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="650" height="380">
                    <param name="movie" value="/<%:Model.NAVLIST[0].ALIAS %>.swf" />
                    <param name="quality" value="high" />
                    <embed src="/<%:Model.NAVLIST[0].ALIAS %>.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="650" height="380"></embed>
                  </object>
                </li>
                <li>
                <div id="topDm" class="tabBox">
                <ul class="nav">
                    <%
                        DateTime s;
                        int hbCount1 = 1;
                      foreach (var b in Model.AD.X650.Elements("ad").
              Where(e => DateTime.TryParse(e.Attribute("dateopen").Value, out s) ? s <= DateTime.Now : true && DateTime.TryParse(e.Attribute("dateclose").Value, out s) ? s >= DateTime.Now : true))
                      {%>
                    <li><a <%if(hbCount1==1){ %>class="curr" <%}%> href="<%:b.Element("link").Value %>" target="<%=b.Attribute("isopen").Value == "1" ? "_blank" : string.Empty %>">
                        <%:hbCount1%></a></li>
                    <%hbCount1++;
                      }%>
                </ul>
                
                <%int hbCount2 = 1;
                  foreach (var c in Model.AD.X650.Elements("ad").
              Where(e => DateTime.TryParse(e.Attribute("dateopen").Value, out s) ? s <= DateTime.Now : true && DateTime.TryParse(e.Attribute("dateclose").Value, out s) ? s >= DateTime.Now : true))
                  {%>
                 <a class="channel <%if(hbCount2==1){ %>curr<%}%>" href="<%:c.Element("link").Value %>" target="<%=c.Attribute("isopen").Value == "1" ? "_blank" : string.Empty %>">
                    <img src="<%=c.Element("img").Value %>" /></a>
                <% hbCount2++;
                  }
                %>
                </div>
                </li>




                <li class="HOT_ITEM"><h2>Hot Item熱門商品</h2></li>
                <li>
                    <%var i = 0; foreach (var sm in Model.MARKETLIST)
                      {
                          i++; %>
                    <div class="PRODUCT_LIST2">
                        <ul>
                            <li><a href="<%:sm.GetMarketUri() %>"><img src="<%:sm.IMG %>" style="width:135px;height:135px;" /></a></li>
                            <%if (sm.GROUPTITLE != "N/A")
                              { %><li>【<%:sm.GROUPTITLE%>系列】</li><%} %>
                            <li><a href="<%:sm.GetMarketUri() %>"><%:sm.TITLE%> <%:sm.COLORTITLE%></a></li>
                            <li>Orig. price <%:sm.SHOPPRICE%> </li>
                             <li>Price <span class="PRODUCT_LIST2_PRICE"><%:sm.PRICE%></span> </li>
                        </ul>
                    </div>
                    <%if (i % 4 == 0)
                      {%>
                    <br class="CLEAR" />
                    <%}
                      } %>
                </li>
                </ul>
        <br class="CLEAR" />
        <img src="/Content/page_img/content2_bottom.gif" />
    </div>
    <br class="CLEAR" />
</div>
<script type="text/javascript">
    Tab();
    TopDm();
</script>
</asp:Content>
